package org.example.coupon.controller.front;

import org.example.core.utils.PageUtils;
import org.example.core.utils.R;
import org.example.coupon.service.HomeAdvertiseService;
import org.example.coupon.vo.FrontAdvertiseVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 小杰_cc
 * @version 1.0
 */
@RestController
@RequestMapping("/sms/front/advertise")
public class HomeAdvertiseFrontController {

    @Autowired
    private HomeAdvertiseService homeAdvertiseService;

    /**
     * 列表
     */
    @GetMapping("/list")
    public R<?> list(){
        List<FrontAdvertiseVo> frontAdvertiseVos = homeAdvertiseService.getHomeFrontAdvertiseList();
        return R.ok(frontAdvertiseVos);
    }
}
